package com.rainszj.pojo.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 标签类
 *
 * @author rainszj
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Tag implements Serializable {

    private Long id;
    private String name;

    /**
     * 多对多
     */
    private List<Blog> blogs = new ArrayList<Blog>();

    public Tag(Long id, String name) {
        this.id = id;
        this.name = name;
    }
}
